/*
 * Authors: Alex Attar & Kevin El Hage
 * ID: 9765727
 * Date: 9/3/2012
 * 
 */

package taskManagerSystem.ModelSubsystem;

/*
 * The Task class contains all information pertinent to a task.
 * It also includes getters and setters for this information.
 */
public class Task {
	
	// Class properties
	private int taskID = 0;
	private String title = "";
	private String description = "";
	private int duration = 0;
	private String deliverable = "";
	private String deadlineDate;
	private String person = "";
	
	public Task(){}
	
	public Task(int taskID, String title, String description, int duration,
			String deliverable, String deadlineDate, String person) {
		this.taskID = taskID;
		this.title = title;
		this.description = description;
		this.duration = duration;
		this.deliverable = deliverable;
		this.deadlineDate = deadlineDate;
		this.person = person;
	}

	// Accessors and mutators  for the Task object
	public int getTaskID() {
		return taskID;
	}

	public void setTaskID(int taskID) {
		this.taskID = taskID;
	}

	public String getTitle() {
		return title;
	}

	public void setTitle(String title) {
		this.title = title;
	}

	public String getDescription() {
		return description;
	}

	public void setDescription(String description) {
		this.description = description;
	}

	public int getDuration() {
		return duration;
	}

	public void setDuration(int duration) {
		this.duration = duration;
	}

	public String getDeliverable() {
		return deliverable;
	}

	public void setDeliverable(String deliverable) {
		this.deliverable = deliverable;
	}

	public String getDeadlineDate() {
		return deadlineDate;
	}

	public void setDeadlineDate(String deadlineDate) {
		this.deadlineDate = deadlineDate;
	}

	public String getPerson() {
		return person;
	}

	public void setPerson(String person) {
		this.person = person;
	}
	
	// overriding the toString method
	public String toString()
	{
		return taskID + ", " + title + ", " + description + ", " + duration + ", " + deliverable + ", " + deadlineDate + ", " + person;
	}
}